﻿namespace DesignModeConsole.创建型.抽象工厂模式;

/// <summary>
/// 读取文件的接口
/// </summary>
public interface IReadFile
{
    /// <summary>
    /// 读取文件
    /// </summary>
    /// <returns></returns>
    string Read();
}

public class ReadJsonSystemOneFile : IReadFile
{
    public string Read()
    {
        return "读取json格式文件";
    }
}

public class ReadJsonSystemTwoFile : IReadFile
{
    public string Read()
    {
        return "读取json格式文件";
    }
}